using System.Configuration;

namespace SeguradoraIA.Framework.Configuration
{
    public class DaoFactoryConfigurationCollection : ConfigurationElementCollection
    {

        public DaoFactoryConfigurationCollection()
        {
            this.AddElementName = "map";
        }

        protected override ConfigurationElement CreateNewElement()
        {
            return new DaoFactoryConfigurationElement();
        }

        protected override object GetElementKey(ConfigurationElement element)
        {
            return ((DaoFactoryConfigurationElement)element).Interface;
        }

        public DaoFactoryConfigurationElement Get(int index)
        {
            return (DaoFactoryConfigurationElement)BaseGet(index);
        }
    }
}